//package com.aliyun.mgt.service.impl;
//
//import PendingEventService;
//import com.aliyun.mgt.account.domain.model.HandlePendingEvent;
//import com.aliyun.mgt.account.domain.model.query.MsgQuery;
//import com.aliyun.mgt.account.domain.model.vo.*;
//import com.github.pagehelper.Page;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.util.List;
//
///**
// * Created with IDEA
// *
// * @author:niulei
// * @date:2019/4/16
// * @time:10:41
// */
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class PendingEventServiceImplTest extends AbstractTransactionalJUnit4SpringContextTests {
//
//    @Autowired
//    private PendingEventService pendingEventService;
//
//    @Test
//    public void testListPendingEvent() {
//        PendingEventQueryVO pendingEventQueryVO = new PendingEventQueryVO();
//        pendingEventQueryVO.setRole(1);
//        Page<PendingEventReturnVO> pendingEventReturnVOS = pendingEventService.listPendingEvent(pendingEventQueryVO);
//    }
//
//    @Test
//    public void testHandlePendingEvent() {
//        HandlePendingEvent handlePendingEvent = new HandlePendingEvent();
//        handlePendingEvent.setRole(1);
//        handlePendingEvent.setEventType(1);
//        handlePendingEvent.setSpecificEventId(1);
//        handlePendingEvent.setStateHandle(1);
//        handlePendingEvent.setHandleDescribe("单元测试");
//        handlePendingEvent.setUserId("102709");
//        handlePendingEvent.setUserName("管理员");
//        int i = pendingEventService.handlePendingEvent(handlePendingEvent);
//    }
//
//    @Test
//    public void testPendingEventListOwnerDept() {
//        PendingEventQueryVO pendingEventQueryVO = new PendingEventQueryVO();
//        pendingEventQueryVO.setRoleCode("1");
//        List<DepVo> depVos = pendingEventService.pendingEventListOwnerDept(pendingEventQueryVO);
//    }
//
//    @Test
//    public void testPendingEventListPushChannel() {
//        PendingEventQueryVO pendingEventQueryVO = new PendingEventQueryVO();
//        pendingEventQueryVO.setRoleCode("1");
//        List<PushChannelVO> pushChannelVOS = pendingEventService.pendingEventListPushChannel(pendingEventQueryVO);
//    }
//
//    @Test
//    public void testPendingEventListStateHandle() {
//        PendingEventQueryVO pendingEventQueryVO = new PendingEventQueryVO();
//        pendingEventQueryVO.setRoleCode("1");
//        List<StateHandleVO> stateHandleVOS = pendingEventService.pendingEventListStateHandle(pendingEventQueryVO);
//    }
//
//    @Test
//    public void testHandlePendingEventNew() {
//        HandlePendingEvent handlePendingEvent = new HandlePendingEvent();
//        handlePendingEvent.setRole(1);
//        handlePendingEvent.setEventType(1);
//        handlePendingEvent.setSpecificEventId(1);
//        handlePendingEvent.setStateHandle(1);
//        handlePendingEvent.setHandleDescribe("单元测试");
//        handlePendingEvent.setUserId("102709");
//        handlePendingEvent.setUserName("管理员");
//        int i = pendingEventService.handlePendingEventNew(handlePendingEvent);
//    }
//
//    @Test
//    public void testListDepVos() {
//        MsgQuery msgQuery = new MsgQuery();
//        msgQuery.setTimeCreateTo("2020-12-01");
//        msgQuery.setTimeCreateEnd("2020-12-03");
//        List<DepVo> depVos = pendingEventService.listDepVos(msgQuery);
//    }
//
//    @Test
//    public void testHandleTemplatePendingEvent() {
//        HandlePendingEvent handlePendingEvent = new HandlePendingEvent();
//        handlePendingEvent.setRole(1);
//        handlePendingEvent.setEventType(1);
//        handlePendingEvent.setSpecificEventId(1);
//        handlePendingEvent.setStateHandle(1);
//        handlePendingEvent.setHandleDescribe("单元测试");
//        Integer integer = pendingEventService.handleTemplatePendingEvent(handlePendingEvent);
//    }
//}